﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Newtonsoft.Json;

namespace WorkStation.Frameworks.EasyBus
{
    /// <summary>
    /// EasyBus异常
    /// </summary>
    public class EasyBusException : Exception
    {
        public EasyBusException(string message) : base(message) { }

        public EasyBusException(string message, Exception inner) : base(message, inner) { }

        public virtual string ToJsonString() 
        {
            return JsonConvert.SerializeObject(this);
        }
    }
}
